package com.context.AdminControl;

import com.impl.admin.AdminCheckUsersDetailInfoImpl;
import com.impl.admin.AdminSearchImpl;
import com.mInterface.datalist.DatasListInterface;

public class AdminControlTwoContext {


	public final static int TYPE_CHECK_ACCOUNT = 0;

	public final static int TYPE_SEARCH_ACCOUNT = 1;

	private AdminControlTwoContext(){}

	private static DatasListInterface DI;

	public static DatasListInterface getInstance( int type ){

		switch (type) {
		case TYPE_CHECK_ACCOUNT:

			DI = null;
			DI = new AdminCheckUsersDetailInfoImpl();
			break;

		case TYPE_SEARCH_ACCOUNT:

			DI = null;
			DI = new AdminSearchImpl();
			
			break;

		default:
			break;
		}
		return DI;
	}
}
